package org.wmq.housewebadmin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.wmq.housemodel.entity.PaymentType;

import java.util.List;

@Mapper
public interface PaymentTypeMapper extends BaseMapper<PaymentType> {
    @Select("select * from payment_type where is_deleted = 0")
    public abstract List<PaymentType> selectAll();

    public abstract int updateById(PaymentType paymentType);

    @Delete("delete from payment_type where id = #{id}")
    public abstract int deleteById(PaymentType paymentType);
}
